package com.jtcl.netty.service;

import io.netty.channel.Channel;
import org.springframework.stereotype.Service;

import javax.swing.text.Document;

/**
 * @author sjt
 * @since 2021-02-26 11:01
 */
@Service
public class MessageServiceImpl implements MessageService{
    /**
     * 报文 解密、解压操作
     *
     * @param msg
     * @return java.lang.String
     * @author 施锦庭
     * @since 2021-02-24 13:08
     **/
    @Override
    public String decrypt(String msg) {
        return null;
    }

    /**
     * 报文 压缩、加密操作
     *
     * @param msg
     * @return java.lang.String
     * @author 施锦庭
     * @since 2021-02-24 13:08
     **/
    @Override
    public String encrypt(String msg) {
        return null;
    }

    /**
     * 报文拆包
     *
     * @param msg
     * @param channel
     * @return void
     * @author 施锦庭
     * @since 2021-02-24 13:08
     **/
    @Override
    public void unpack(String msg, Channel channel) {

    }

    /**
     * 业务处理
     *
     * @param msg
     * @param channel
     * @return void
     * @author 施锦庭
     * @since 2021-02-24 13:09
     **/
    @Override
    public void dealPact(String msg, Channel channel) {

    }

    /**
     * 向指定客户端发送消息
     *
     * @param document
     * @param channel
     * @return void
     * @author 施锦庭
     * @since 2021-02-24 13:10
     **/
    @Override
    public void sendMessage(Document document, Channel channel) {

    }
}
